using namespace std;
#include<iostream>

int main()
{
    //枚举类型enum enum-name { list of names } var-list;
    enum sex{man=1,woman} d; //man=1,woman=2,默认在前值基础上+1
    enum score{A,B,C,D,E} s,s2;
    d = man;
    s = A;
    s2 = D;

    std::cout << d << std::endl;
    std::cout << s << std::endl;
    std::cout << s2 << std::endl;
    return 0;
}
/**
output:
1
0
3
*/